package com.atguigu.edu.realtime.publisher.service.impl;

import com.atguigu.edu.realtime.publisher.bean.AnswerQuesCnt;
import com.atguigu.edu.realtime.publisher.bean.ExamCnt;
import com.atguigu.edu.realtime.publisher.bean.PaperScoreDur;
import com.atguigu.edu.realtime.publisher.mapping.ExamCountMapper;
import com.atguigu.edu.realtime.publisher.service.ExamCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamCountServiceImpl implements ExamCountService {
    @Autowired
    ExamCountMapper examCountMapper;
    @Override
    public List<ExamCnt> getPaperCnt(Integer date) {
        return examCountMapper.selectCourseCnt(date);
    }

    @Override
    public List<ExamCnt> getCourseCnt(Integer date) {
        return examCountMapper.selectPaperCnt(date);
    }

    @Override
    public List<PaperScoreDur> getPaperScoreDur(Integer date) {
        return examCountMapper.selectPaperScoreDur(date);
    }

    @Override
    public List<AnswerQuesCnt> getAnswerQuesCnt(Integer date) {
        return examCountMapper.selectAnswerQuesCnt(date);
    }
}
